﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Linq.Expressions;

namespace Xoohoo.Models
{
    public class UserSearchCriteria
    {
        public UserSearchCriteria(Guid? userGroupID, UserStatus? status, string keyword)
        {
            UserGroupID = userGroupID;
            Status = status;
            Keyword = keyword;
        }
        public Guid? UserGroupID { get; private set; }
        public UserStatus? Status { get; private set; }
        [StringLength(100,ErrorMessage="搜索关键字长度请保持在100个字符以内")]
        public string Keyword { get; private set; }
    }
}
